﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Objects
{
    [Table("SavedSeats")]
    public class SavedSeat
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [InverseProperty("Id")]
        [ForeignKey("FK_SEATID")]
        public int SeatId { get; set; }

        [InverseProperty("Id")]
        [ForeignKey("FK_USERID_SEAT")]
        public int LoginId { get; set; }

        public DateTime Date { get; set; }
    }
}
